import nativeHelper from './native-helper.js'

class NativeApi {
  //位置信息获取
  getLocationInfo() {
    return nativeHelper.callNative('getLocationInfo', [])
  }
  getVersionInfo() {
    return nativeHelper.callNative('getVersionInfo', [])
  }
  closeApp() {
    return nativeHelper.callNative('closeApp', [])
  }
  getStatusBarHeight() {
    return nativeHelper.callNative('getStatusBarHeight', [])
  }
  setStatusBarLightMode(isLightMode) {
    return nativeHelper.callNative('setStatusBarLightMode', [isLightMode])
  }
  setStatusBarColor(color) {
    return nativeHelper.callNative('setStatusBarColor', [color])
  }
  transparentStatusBar() {
    return nativeHelper.callNative('transparentStatusBar', [])
  }
}
export default NativeApi
